package com.yuyou.fn.settlement.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

/**
 *
 * 帐户变更记录
 *
 */
@TableName(value = "change_record")
public class ChangeRecord implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<ChangeRecord> createExample(){
		return new Example<ChangeRecord>(ChangeRecord.class);
	}

	/**  */
	@TableId(value = "change_record_id")
	private Long changeRecordId;

	/** 发生金额 */
	private BigDecimal amount;

	/** 备注 */
	private String remark;

	/** 追踪id */
	@TableField(value = "tracking_id")
	private Long trackingId;

	/**  */
	@TableField(value = "main_account_id")
	private Long mainAccountId;

	/**  */
	@TableField(value = "parent_main_account_id")
	private Long parentMainAccountId;

	/** 科目 */
	private String subject;

	/** 多个tag分号隔开 */
	private String tags;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/**
	 * 结算状态 0:未结算 1:已结算
	 */
	@TableField("settle_status")
	private Integer settleStatus;

	/**方向  0:增加 1:扣减*/
	private Integer direction ;

	public Long getChangeRecordId() {
		return this.changeRecordId;
	}

	public void setChangeRecordId(Long changeRecordId) {
		this.changeRecordId = changeRecordId;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getTrackingId() {
		return this.trackingId;
	}

	public void setTrackingId(Long trackingId) {
		this.trackingId = trackingId;
	}

	public Long getMainAccountId() {
		return this.mainAccountId;
	}

	public void setMainAccountId(Long mainAccountId) {
		this.mainAccountId = mainAccountId;
	}

	public Long getParentMainAccountId() {
		return this.parentMainAccountId;
	}

	public void setParentMainAccountId(Long parentMainAccountId) {
		this.parentMainAccountId = parentMainAccountId;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getTags() {
		return this.tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getSettleStatus() {
		return settleStatus;
	}

	public void setSettleStatus(Integer settleStatus) {
		this.settleStatus = settleStatus;
	}

	public Integer getDirection() {
		return direction;
	}

	public void setDirection(Integer direction) {
		this.direction = direction;
	}
}
